package com.qhs.sys.mapper;

import com.qhs.framework.base.BaseMapper;
import com.qhs.sys.entity.SysUserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserInfoMapper extends BaseMapper<SysUserInfo> {
/*    int deleteByPrimaryKey(Long userId);

    int insert(SysUserInfo record);

    int insertSelective(SysUserInfo record);

    SysUserInfo selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUserInfo record);

    int updateByPrimaryKey(SysUserInfo record);*/

    /**
     *
     * @param userName
     * @return
     */
    SysUserInfo selectByName(String userName);

    /**
     * 根据条件查询用户
     * @param userInfo
     * @return
     */
    List<SysUserInfo> findUserByWhere(SysUserInfo userInfo);

    SysUserInfo isAgencyOrAdmin(Long userId);

    SysUserInfo isAgencyOrKaOrAdmin(Long userId);
}
